/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 86186
 * Date: 2023-07-23
 * Time: 20:34
 */
public class Main {
    public static void main(String[] args) {
        Test test = new Test();
        Test.ListNode head = test.createListNode();
        test.removeDuplicateNodes(head);
        Test.ListNode cur = head;
        while(cur != null) {
            System.out.println(cur.val);
            cur = cur.next;
        }
    }
}